package com.huluobo.a2107monthdemo.home

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.huluobo.a2107monthdemo.R
import com.huluobo.a2107monthdemo.utils.ImageUtil

/**
 *  Created by LC on 2023/11/30.
 */
class HomeNavAdapter(list: MutableList<HomeNavBean>) :
    BaseQuickAdapter<HomeNavBean, BaseViewHolder>(R.layout.item_nav, list) {
    override fun convert(helper: BaseViewHolder, item: HomeNavBean) {
        helper.setText(R.id.home_nav_tv, item.category_name)
        ImageUtil.loadImage(context, item.category_icon!!, helper.getView(R.id.home_nav_iv))
    }
}